package com.zqx.facade.childsystem;

import lombok.extern.slf4j.Slf4j;

/**
 * description: 子系统类（加密类）
 * @author zqx
 * @date 2018/09/04
 */
@Slf4j
public class CipherMachine {

    public String encrypt(String plainText){
      System.out.println("数据加密，将明文转换成密文");
      String es = "";
      for (int i=0 ;i<plainText.length(); i++)
      {
          String c = String.valueOf(plainText.charAt(i)%7);
          es += c;
      }
      //log.info("输出结果",es);
      System.out.println(es);
      return es;
    }
}
